package com.sean.designpatterns.create.simplefactory;

public class SimpleFactory {

    public static Fruit createFruit(String category){
        if (category.equals("apple")){
            return new Apple();
        }else if(category.equals("banana")){
            return new Banana();
        }else{
            return null;
        }
    }


}
